//
//  LMPersonView.m
//  05-九宫格
//
//  Created by 张青花 on 15/7/22.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "LMPersonView.h"
#import "LMPerson.h"

@interface LMPersonView()
@property (weak, nonatomic) IBOutlet UIImageView *iconName;
@property (weak, nonatomic) IBOutlet UILabel *labelName;
@property (weak, nonatomic) IBOutlet UIButton *buttonName;
@end

@implementation LMPersonView



+ (instancetype)appInfoView
{
    LMPersonView *subView =[[[NSBundle mainBundle] loadNibNamed:@"LMPerson" owner:nil options:nil] lastObject];
    return subView;

}

- (void)setAppInfo:(LMPerson *) appInfo
{
    _appInfo = appInfo;
    

    self.iconName.image = [UIImage imageNamed:appInfo.icon];
    self.labelName.text = appInfo.name;
}

@end
